package com.fare.taluo.fetl.domain.repository;

import java.util.List;

import com.fare.taluo.base.ddd.repository.IBaseRepository;
import com.fare.taluo.fetl.domain.entity.FreightMonitorCabinsEntity;
import com.fare.taluo.fetl.domain.entity.FreightMontiorEntity;

public interface IFreightMontorRepository extends IBaseRepository{
	public List<FreightMontiorEntity> findAll();
	public List<FreightMontiorEntity> findByConditions(int type, String fromCity,String toCity,String grabChannelKey,String flightNo,String flightDate);
	
	/**
	 * 查询设置的起始时间到今天 查询的航班最低价，按 抓取时间，次数 升序排序
	 * @param opDate 设置的起始日期
	 * @param flightDate 航班日期
	 * @param flightNo 航班号
	 * @param size 获取列表长度
	 * @return
	 */
	public List<FreightMontiorEntity> findForLowPrice(String opDate,String flightDate, String flightNo,int size)throws Exception;
	////仓位变化表查找
	public List<FreightMontiorEntity> findByData(String flightNumber,String departDate,String opDate,String fromCode,String toCode,String airHbaseKey);
	public List<FreightMontiorEntity> findByDataForm(String flightNumber,String departDate, String opDate, String fromCode, String toCode,	String airHbaseKey);
	public List<FreightMontiorEntity> findMaxGrabNum(String maxDate,
			String flightNos);
	public List<FreightMonitorCabinsEntity> findById(String id);
}
